package stragety2;

import strategy1.pay.AliPay;
import strategy1.pay.UnionPay;
import strategy1.pay.WechatPay;

public class SwtichStrategory {

    public void pay(String payChannel) {

        switch (payChannel) {

            case "ZFB":

                new AliPay().pay("ZFB");
                break;
            case "WX":

                new WechatPay().pay("WX");
                break;
            case "UNION":
                new UnionPay().pay("UNION");
                break;

            default:


        }

    }
}
